<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $title; ?></title>
<link href="<?php echo base_url();?>assets/css/admin.css" rel="stylesheet" type="text/css" media="all" />
<link href="<?php echo base_url();?>assets/css/tablesort.css" rel="stylesheet" type="text/css" media="all" />

<script type="text/javascript" src="<?php echo base_url();?>js/jquery-1.8.2.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/jquery.tablesorter.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/jquery.form.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/admin.js"></script>
</head>
<body>
	<div id="header" class="container">
		<div id="logo">
			<h1>
				Welcome <?php echo $username;?>
			</h1>
		</div>
	</div>
	<div id="menu" class="container">
		<ul>
			<?php foreach($nav_list as $nav_link => $nav_item){ ?>
				<li class="<?php 
					if(strcasecmp($nav, $nav_link) == 0){
						echo 'current_page_item';
					}?>">
					<?php echo anchor("admin/".$nav_link, $nav_item);?>
				</li>
			<?php } ?>
		</ul>
	</div>
	<div id="page" class="container">
		<?php echo $body;?>
	</div>
	<div id="footer">
		<p>
			Copyright (c) 2012 arcadeal.com. All rights reserved.
		</p>
	</div>
</body>
</html>
